package com.gdssoft.pdaweb.model;
/*
 *  捷达世软件(深圳)有限公司
 *  Copyright (C) 2008-2010 ShenZhen JieDaShi Software Limited Company.
*/
import java.util.Date;

import com.gdssoft.core.model.CheckCompleteResult;
import com.gdssoft.core.model.GenericModel;
import com.google.gson.annotations.Expose;

/**
 * CRM 客服工单
 * @author F3201252
 */
@SuppressWarnings("serial")
public class CrmWorkOrder extends com.gdssoft.core.model.BaseModel 
	implements GenericModel{

	@Expose
    protected Long woid;
	@Expose
    protected String activityUID;
	@Expose
	protected String houseNumber;
	@Expose
	protected String houseLocation;
	@Expose
	protected String contactPerson;
	@Expose
	protected String contactPhoneNo;
	@Expose
	protected String dutyPerson;
	@Expose
	protected String workDescription;
	@Expose
	protected String workPriority;
	@Expose
	protected String workStatus;
	@Expose
	protected Date plannedCompletion;
	@Expose
	protected String comment;
	@Expose
	protected String srno;
	@Expose
	protected String updatePerson;
	
	protected Date updateDt;
	@Expose
	protected String createPerson;
	
	protected String uploadDt;
	protected String downLoadDt;
	protected String feedbackDt;
	
	
	public Long getWoid() {
		return woid;
	}

	public void setWoid(Long woid) {
		this.woid = woid;
	}

	public String getActivityUID() {
		return activityUID;
	}

	public void setActivityUID(String activityUID) {
		this.activityUID = activityUID;
	}

	public String getHouseNumber() {
		return houseNumber;
	}

	public void setHouseNumber(String houseNumber) {
		this.houseNumber = houseNumber;
	}

	public String getHouseLocation() {
		return houseLocation;
	}

	public void setHouseLocation(String houseLocation) {
		this.houseLocation = houseLocation;
	}

	public String getUpdatePerson() {
		return updatePerson;
	}

	public void setUpdatePerson(String updatePerson) {
		this.updatePerson = updatePerson;
	}

	public String getContactPerson() {
		return contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	public String getContactPhoneNo() {
		return contactPhoneNo;
	}

	public void setContactPhoneNo(String contactPhoneNo) {
		this.contactPhoneNo = contactPhoneNo;
	}

	public String getDutyPerson() {
		return dutyPerson;
	}

	public void setDutyPerson(String dutyPerson) {
		this.dutyPerson = dutyPerson;
	}

	public String getWorkDescription() {
		return workDescription;
	}

	public void setWorkDescription(String workDescription) {
		this.workDescription = workDescription;
	}

	public String getWorkPriority() {
		return workPriority;
	}

	public void setWorkPriority(String workPriority) {
		this.workPriority = workPriority;
	}

	public String getWorkStatus() {
		return workStatus;
	}

	public void setWorkStatus(String workStatus) {
		this.workStatus = workStatus;
	}

	public Date getPlannedCompletion() {
		return plannedCompletion;
	}

	public void setPlannedCompletion(Date plannedCompletion) {
		this.plannedCompletion = plannedCompletion;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getSrno() {
		return srno;
	}

	public void setSrno(String srno) {
		this.srno = srno;
	}

	public String getCreatePerson() {
		return createPerson;
	}

	public void setCreatePerson(String createPerson) {
		this.createPerson = createPerson;
	}

	public String getUploadDt() {
		return uploadDt;
	}

	public void setUploadDt(String uploadDt) {
		this.uploadDt = uploadDt;
	}

	public String getDownLoadDt() {
		return downLoadDt;
	}

	public void setDownLoadDt(String downLoadDt) {
		this.downLoadDt = downLoadDt;
	}

	public Date getUpdateDt() {
		return updateDt;
	}

	public void setUpdateDt(Date updateDt) {
		this.updateDt = updateDt;
	}

	public String getFeedbackDt() {
		return feedbackDt;
	}

	public void setFeedbackDt(String feedbackDt) {
		this.feedbackDt = feedbackDt;
	}

	/**
	 * Default Empty Constructor for class CRMWorkOrder
	 */
	public CrmWorkOrder () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class CRMWorkOrder
	 */
	public CrmWorkOrder (String inActivityUID) {
		this.setActivityUID(inActivityUID);
    }
	
	

	@Override
	public CheckCompleteResult checkComplete() {
		String msg = "";
		CheckCompleteResult result = new CheckCompleteResult();
		if (null==this.activityUID || this.activityUID=="") {
			result.setIsComplete(false);
			msg = "[活动编号不能为空]";
		}
		result.setMessage(msg);
		return result;
	}

}
